//
//  YCurveView.h
//  DrawCurveDemo
//
//  Created by yan on 16/9/10.
//  Copyright © 2016年 胡岩. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, YCurveViewType) {
    YCurveViewTypeCurve,
    YCurveViewTypeBrokenLine
};

@interface YCurveView : UIView

/**
 *  draw lines with these points the point type is CGPoint
 */
@property (nonatomic, strong) NSArray<NSValue *> *points;

/**
 *  two points make a line , lineColors are one less than points
 */
@property (nonatomic, strong) NSArray<UIColor *> *lineColors;

/**
 *  lines Width
 */
@property (nonatomic, assign) CGFloat lineWidth;

@property (nonatomic, assign) YCurveViewType type;

@property (nonatomic, strong) UIColor *bottomMaskColor;



@end
